package pers.cj.pdos.mapper;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.RetailSet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import pers.cj.pdos.vo.RetailGoodsVo;
import pers.cj.pdos.vo.RetailSetVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface RetailSetMapper extends BaseMapper<RetailSet> {
    List<RetailSetVo> listVo(@Param("page") Integer page, @Param("limit") Integer limit, @Param("companyId") String companyId);
    Long count(@Param("companyId") String companyId);
    List<RetailSetVo> getVoByStore(@Param("storeId")String storeId);


    List<RetailGoodsVo> listRetailGoodsVo(@Param("page") Integer page, @Param("limit") Integer limit, @Param("companyId") String companyId, @Param("houseId") String houseId,@Param("search") String search);

    Long countRetailGoods(@Param("companyId") String companyId, @Param("houseId") String houseId,@Param("search") String search);

}
